π Index
Mostly utility functions for pet system, but you can use these to get index data.
local Framework = require(path).GetServer()
local Index = Framework.Index
setIndexLevelβ
Sets the level for the player, also adds more pet equip slots depending on their level!
Index.setIndexLevel(10)
getAllPetsβ
Gets all the pets, with the default value of false in the dictionary for each pet.
local pets = Index.getAllPets()
getUnlockedβ
Returns all the pets the player has unlocked
local unlocked = Index.getUnlocked(player)
getUnlockedNumβ
Returns the number of pets the player has unlocked
print(Index.getUnlockedNum(player))
addPetToIndexβ
Force adds a pet to the players index, the PetModule already does this.
It also gives you a cool notification if you reach above the level requirement!
Index.addPetToIndex(player, "Cat")
getIndexβ
Returns the players index
Index.getIndex(player)